package com.yjd.comm.fs.service;

import com.yjd.comm.base.model.ResultModel;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.fs.model.FsServiceModel;

import java.util.Map;

/**
 * 服务和文件系统关联对象
 * 
 * @author ready
 * 
 */
public interface IFsServiceService extends IBaseService {

	/**
	 * 新增,返回操作结果，结果的状态可以查看ResultEnum
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public ResultModel insert(FsServiceModel model) throws Exception;

	/**
	 * 根据文件服务id删除对象
	 * 
	 * @param idFsService
	 *            文件服务id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long idFsService) throws Exception;

	/**
	 * 根据Map中的参数删除对象
	 * 
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public int deleteByMap(Map<Object, Object> paramMap) throws Exception;

	/**
	 * 更新，返回操作结果，结果的状态可以查看ResultEnum
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public ResultModel update(FsServiceModel model) throws Exception;

	/**
	 * 根据文件服务类型获取文件服务信息
	 * 
	 * @param serviceType
	 * @return
	 * @throws Exception
	 */
	public FsServiceModel getFsServiceModelByType(String serviceType)
			throws Exception;

}
